import { createSlice } from '@reduxjs/toolkit'

const initialState = {
  token:''
}
// 13.完成完成仓库的搭建redux-toolkit
export const citySlice = createSlice({
  name: 'city',
  initialState,
  reducers: {
   Toolkit(state,action){
     state.token=action.payload
     console.log(action.payload);
     
   }
  },
})

// Action creators are generated for each case reducer function
export const {Toolkit} = citySlice.actions

export default citySlice.reducer